/**
 * Copyright (C) 2018-2022
 * All rights reserved, Designed By www.yixiang.co
 * 注意：
 * 本软件为www.yixiang.co开发研制
 */
package com.avic.modules.system.service.dto;

import com.avic.modules.system.domain.WorkshopSection;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Set;

/**
 * @author zhangzikang
 * @date 2022-08-14
 */
@Data
public class UserDto implements Serializable {


    @ApiModelProperty(hidden = true)
    private Long id;

    private String username;

    private String nickName;

    private String sex;

    /** 岗位名称 */
    private Long jobId;

    private String avatar;

    private String email;

    private String phone;

    private Boolean enabled;

    @JsonIgnore
    private String password;

    private Timestamp lastPasswordResetTime;

    @ApiModelProperty(hidden = true)
    private Set<RoleSmallDto> roles;

    @ApiModelProperty(hidden = true)
    private JobSmallDto job;

    private DeptSmallDto dept;

    private Long deptId;

    private Timestamp createTime;

    private Timestamp updateTime;

    /** 工号 */
    private String jobNumber;

    /** 工段 */
    private String workStage;

    /** 工段 */
    @TableField(exist = false)
    private WorkshopSection paragraphs;

    /** 创建人 */
    private Long createUserId;
    private String createUserName;

    /** 修改人 */
    private Long updateUserId;
    private String updateUserName;
}
